import { UseTranslation } from '@/app/i18n';
import Link from 'next/link';

type Props = {
  params: { lang: Lang };
};

export default async function Page({ params: { lang } }: Props) {
  const { t } = await UseTranslation(lang, 'second-page');
  return (
    <>
      <h1>{t('title')}</h1>
      <Link href={`/${lang}`}>{t('back-to-home')}</Link>
    </>
  );
}
